//
//  HRCRegisteredViewController.m
//  EMarket
//
//  Created by 石头 on 2018/5/8.
//  Copyright © 2018年 好日子. All rights reserved.
//

#import "HRCRegisteredViewController.h"

// Controllers

// Models

// Views
#import "HRZVerificationView.h"

// Vendors

// Categories
#import "UIBarButtonItem+HRZBarButtonItem.h"
#import "UIView+SPExtension.h"
// Others

@interface HRCRegisteredViewController ()

/* 手机注册 */
@property (strong , nonatomic)HRZVerificationView *verificationView;
@end

@implementation HRCRegisteredViewController

#pragma mark - LazyLoad


#pragma mark - LifeCyle

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do view setup here.
    
    
    [self setUpBase];
    [self setUpNav];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)setUpNav
{
    self.navigationItem.rightBarButtonItem = [UIBarButtonItem ItemWithImage:[UIImage imageNamed:@"Details_Btn_More_normal"] WithHighlighted:[UIImage imageNamed:@"Details_Btn_More_normal"] Target:self action:@selector(toolItemClick)];
}

- (void)toolItemClick {
    [self.navigationController popViewControllerAnimated:YES];
    [self dismissViewControllerAnimated:YES completion:nil];
    
}

- (void)setUpBase
{
    self.view.backgroundColor = [UIColor whiteColor];
    self.title = @"手机注册";
    
    _verificationView = [HRZVerificationView sp_viewFromXib];
    [_verificationView.loginButton setTitle:@"注册" forState:0];
    _verificationView.frame = CGRectMake(0, 100, kScreenWidth, 400);
    _verificationView.agreementLabel.text = @"注册成功即代表同意《申通服务协议》";
    _verificationView.isVerification = YES;
    [self.view addSubview:_verificationView];
    
    
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(toolItemClick) name:RESIGINSCUCCES object:nil];
}


- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
{
    [self.view endEditing:YES];
}

@end
